@echo off

if %JDK_HOME%.==. goto SETHOME

REM For jdk1.4 and higher add -breakiterator command line switch
%JDK_HOME%\bin\javadoc -d docs -private -classpath ..\..\lib\javax.jar -bootclasspath ..\..\lib\java.jar -sourcepath *.java 
echo Done.
goto EXIT

:SETHOME
echo Missing JDK_HOME environment variable. For example: SET JDK_HOME=C:\JDK1.3

:EXIT
pause